package com.woniu.service;

import com.woniu.adapter.SellRecordAdapter;
import com.woniu.service.bean.AddSellRecord;
import com.woniu.service.bean.AddSellRecordHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SellRecordService implements AddSellRecordHandler {

    @Autowired
    private SellRecordAdapter sellRecordAdapter;

    @Override
    public void action(AddSellRecord command) {
        sellRecordAdapter.addSellRecord(command);
    }
}
